package com.qiang.test02;

public class Demo {
    public static void main(String[] args) {
        Dog dog = new Dog();

        Animal animal = new Animal();

        boolean b = dog instanceof Animal;
        System.out.println(b);

        dog.Eat();
        dog.method();
    }
}
